function login(){
    axios.get('/user/login', {
        params:{
            userName: $("username").value,
            pwd: $("password").value
            
        }
    }).then(resp =>{
        console.log(username.value);
        if(resp.data == '登录成功'){
            window.location.href = 'index.html';
        }else{
            document.getElementById('error').innerHTML = '登录失败';
        }
    
    }) 
}

function reset() {
    $('username').value = '';
    $('password').value = '';
}
